package com.example.listossimage.aop;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
@RunWith(SpringRunner.class)
public class BlogServiceTest {

    @Autowired
    BlogService blogService;

    @Test
    public void getBlogTest() {
        String blog = blogService.getBlog();
        System.out.println(blog);
    }

    @Test
    public void addBlogTest() {
        blogService.addBlog("blog");
    }
}
